package com.moli.lumpSugar.user.event;


import com.moli.lumpSugar.user.domain.entity.UserApply;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * @program: LumpSugarChat
 * @description: 用户申请好友事件
 * @author: zhangjt
 * @create: 2024-10-30
 **/
@Getter

public class UserApplyEvent extends ApplicationEvent {
    private UserApply userApply;

    /**
     * 构造函数，初始化UserRegisterEvent对象
     *
     * @param source 事件源，通常为触发事件的组件
     * @param userApply   用户申请好友信息对象
     */
    public UserApplyEvent(Object source, UserApply userApply) {
        super(source);
        this.userApply = userApply;
    }
}
